package factorymethod;

public class ParametricCreator   {
	public enum ProductId{
		ProductA, ProductB
	}
	
	public Product create(ProductId id) {
		 
		switch(id){
			case ProductA:
				return new ConcreteProductA();
			
			case ProductB:
			default:
				return new ConcreteProductB();
		}
	}

}
